/**
 * 
 */
package demo.listener;

import java.util.*;

public class DemoSource
{
       private Vector repository = new Vector();
       DemoListener dl;
       public DemoSource()
       {
 
       }
       public void addDemoListener(DemoListener dl)
       {
              repository.addElement(dl);
       }
       public void notifyDemoEvent()
       {
    	   Enumeration  Enum = repository.elements();
              while(Enum.hasMoreElements())
              {
                    dl = (DemoListener)Enum.nextElement();
                    dl.demoEvent(new DemoEvent(this));
              }
       }
}
  
